package springSex;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import springSex.testDao.TestDao;


public class App {

	public static void main(String[] args) {
//		System.setProperty("spring.profiles.active", "production");
//		System.setProperty("spring.profiles.active", "test");
		System.setProperty("spring.profiles.active", "development");
		ApplicationContext ac = new AnnotationConfigApplicationContext(Config.class);
		TestDao dao = ac.getBean(TestDao.class);
		dao.listAll().forEach(e->System.out.println(e));
	}
}
